import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import pickerAddress from '@/components/gtc-pickerAddress/pickerAddress.vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import axios from 'axios'
Vue.prototype.$axios = axios

// import { requests } from "./utils/request.js";
// Vue.prototype.request=request

import request from './utils/request.js'
// http请求
Vue.prototype.$axios=request;

// // 在 main.js 顶部引入一下 http.js
// import http from './utils/httpRequest.js'

// // 放到 Vue 原型上面
// //Vue.prototype.名称自定义 = http
// Vue.prototype.$http = http

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif